def func(num):
    if num == 1:
        return 1
    else:
        return func(num-1) + num

print(func(50))